using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace DealerWorld.Forms
{
    public partial class customer : Form
    {
        Customer cust;
        public customer(Customer c)
        {
            InitializeComponent();

            cust = c;

            txb_cust_address1.Text = c.address;
            txb_cust_address2.Text = c.addressTwo;
            txb_cust_city.Text = c.city;
            txb_cust_name.Text = c.name;
            if(c.birthday != DateTime.MinValue) cust_birth_date.Value = c.birthday;
            cust_contact_day.Text = c.contactDay.ToString();
            cust_contact_method.Text = c.contactMethod;
            cust_country.Text = c.country;
            cust_county.Text = c.county;
            cust_employer.Text = c.employer;
            cust_fleet_vehicle.Text = (c.fleetVehicle) ? "Yes" : "No";
            cust_gender.Text = c.gender;
            cust_language.Text = c.language;
            cust_main_email.Text = c.mainEmail;
            cust_main_phone.Text = c.mainPhone;
            cust_state.Text = c.state;
            cust_tax_id.Text = c.taxId;
        }
    }
}